package cn.zeng.dto;

import lombok.Data;

import java.util.HashMap;
import java.util.Map;

import static cn.zeng.dto.Color.BLACK;


/**
 * 血脂异常
 *
 * @author zyb
 */
@Data
public class BloodFat {
    private String level = "低风险";
    private String image = "u4736.png";

    /**
     * 总胆固醇
     */

    private Double totalCholesterol = 123.;
    private String totalCholesterolColor = BLACK.getName();
    private String totalCholesterolReference = "112";

    /**
     * 甘油三酯
     */
    private Double triglycerides = 12.;
    private String triglyceridesColor = BLACK.getName();
    private String triglyceridesReference = "212";


    /**
     * 高密度蛋白固醇
     */

    private Double highDensityLipoprotein = 12.;
    private String highDensityLipoproteinColor = BLACK.getName();
    private String highDensityLipoproteinReference = "222";

    /**
     * 低密度蛋白固醇
     */

    private Double lowDensityLipoprotein = 2.;
    private String lowDensityLipoproteinColor = BLACK.getName();
    private String lowDensityLipoproteinReference = "11";

    private Double bmi = 12.;
    private String bmiColor = BLACK.getName();
    private String bmiReference = "123";


    private String activity = "1111";
    private String activityColor = BLACK.getName();

    /**
     * 改善方式
     */
    private String improveWay = "我我我\t我我我\t额额额\t日日日\t通天塔";


    public Map<String, Object> toMap() {
        Map<String, Object> map = new HashMap<>(19);
        map.put("BloodFat_level", level);
        map.put("BloodFat_image", image);
        map.put("BloodFat_totalCholesterol", totalCholesterol);
        map.put("BloodFat_totalCholesterolColor", totalCholesterolColor);
        map.put("BloodFat_totalCholesterolReference", totalCholesterolReference);
        map.put("BloodFat_triglycerides", triglycerides);
        map.put("BloodFat_triglyceridesColor", triglyceridesColor);
        map.put("BloodFat_triglyceridesReference", triglyceridesReference);
        map.put("BloodFat_highDensityLipoprotein", highDensityLipoprotein);
        map.put("BloodFat_highDensityLipoproteinColor", highDensityLipoproteinColor);
        map.put("BloodFat_highDensityLipoproteinReference", highDensityLipoproteinReference);
        map.put("BloodFat_lowDensityLipoprotein", lowDensityLipoprotein);
        map.put("BloodFat_lowDensityLipoproteinColor", lowDensityLipoproteinColor);
        map.put("BloodFat_lowDensityLipoproteinReference", lowDensityLipoproteinReference);
        map.put("BloodFat_bmi", bmi);
        map.put("BloodFat_bmiColor", bmiColor);
        map.put("BloodFat_bmiReference", bmiReference);
        map.put("BloodFat_activity", activity);
        map.put("BloodFat_activityColor", activityColor);
        map.put("BloodFat_improveWay", improveWay);
        return map;
    }
}

